package com.ebeijia.common;

/**
 * 定义常量
 * 
 * @author chyulin
 * 
 */
public interface CommonConstant {
	String SIGN_TYPE_MD5 = "01";

	/**
	 * 文件类型-视频
	 */
	String FILE_TYPE_VEDIO = "01";
	String FILE_TYPE_AUDIO = "02";
	String FILE_TYPE_HANDOUT = "11";
	String FILE_TYPE_REFERENCE = "12";

	String FILE_TYPE_IMG = "21";

	/**
	 * 文件状态 可删除
	 */
	String FILE_STATE_DEL = "43";
	/**
	 * 文件状态 为使用
	 */
	String FILE_STATE_NOUSE = "42";
	/**
	 * 文件状态 已用
	 */
	String FILE_STATE_USE = "41";

	/**
	 * 问题类型 问答题：04
	 */
	String ESSAYQUES_TYPE_EQ = "04";

	/**
	 * 问题类型 案例分析：05
	 */
	String ESSAYQUES_TYPE_CASE = "05";

	String SMS_V_CODE_REGISTER = "01";
	String SMS_V_CODE_MODIFY = "02";
	String SMS_V_CODE_UNDO = "03";

	/**
	 * 消息默认未读
	 */
	String SMS_IsRead = "0";

	/**
	 * 支付状态
	 */
	enum PayStatus {
		NotPay("00","未支付"), 
		PayUnPay("01","支付终止"),
		PaySuccess("10","支付成功" ), 
		PayFail("20","支付失败"), 
		RefundSuccess("30","退款成功"), 
		RefundFail("31","退款失败");
		private String code, desc;

		PayStatus(String code, String desc) {
			this.code = code;
			this.desc = desc;
		}
		public String getCode(){
			return code;
		}
		
		public String getDesc(){
			return desc;
		}

	}

	/**
	 * 支付状态
	 */
	enum PayResult {
		ResultSuccess("1","缴费成功"), ResultFail("0","缴费失败");
		String name, value;

		PayResult(String value, String name) {
			this.name = name;
			this.value = value;
		}
	}

}
